package com.xquant.marketdata.marketdata.service;

import com.github.pagehelper.PageInfo;
import com.xquant.marketdata.curvestrip.entity.IDailyQuote;
import com.xquant.marketdata.marketdata.entity.DailyQuote;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface TdailyQuoteService {
    int insert(HashMap record);

    int update(DailyQuote record);

    void delete(DailyQuote record);

    PageInfo selectListByPage(Map<String, Object> key);

    List<DailyQuote> switchToDailyQuote(List<IDailyQuote> date, int modelType);

    int insertBatch(@Param("dailyQuotes") List<DailyQuote> dailyQuotes);

}
